<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - mbi.info - /usr/local/include/boost/array.hpp</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../../../index.html">directory</a> - <a href="index.html">usr/local/include/boost</a> - array.hpp</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>mbi.info</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2010-01-23</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">1</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">100.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">1</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : /* The following code declares class array,
<span class="lineNum">       2 </span>                :  * an STL container (as wrapper) for arrays of constant size.
<span class="lineNum">       3 </span>                :  *
<span class="lineNum">       4 </span>                :  * See
<span class="lineNum">       5 </span>                :  *      http://www.boost.org/libs/array/
<span class="lineNum">       6 </span>                :  * for documentation.
<span class="lineNum">       7 </span>                :  *
<span class="lineNum">       8 </span>                :  * The original author site is at: http://www.josuttis.com/
<span class="lineNum">       9 </span>                :  *
<span class="lineNum">      10 </span>                :  * (C) Copyright Nicolai M. Josuttis 2001.
<span class="lineNum">      11 </span>                :  *
<span class="lineNum">      12 </span>                :  * Distributed under the Boost Software License, Version 1.0. (See
<span class="lineNum">      13 </span>                :  * accompanying file LICENSE_1_0.txt or copy at
<span class="lineNum">      14 </span>                :  * http://www.boost.org/LICENSE_1_0.txt)
<span class="lineNum">      15 </span>                :  *
<span class="lineNum">      16 </span>                :  * 29 Jan 2004 - c_array() added, BOOST_NO_PRIVATE_IN_AGGREGATE removed (Nico Josuttis)
<span class="lineNum">      17 </span>                :  * 23 Aug 2002 - fix for Non-MSVC compilers combined with MSVC libraries.
<span class="lineNum">      18 </span>                :  * 05 Aug 2001 - minor update (Nico Josuttis)
<span class="lineNum">      19 </span>                :  * 20 Jan 2001 - STLport fix (Beman Dawes)
<span class="lineNum">      20 </span>                :  * 29 Sep 2000 - Initial Revision (Nico Josuttis)
<span class="lineNum">      21 </span>                :  *
<span class="lineNum">      22 </span>                :  * Jan 29, 2004
<span class="lineNum">      23 </span>                :  */
<span class="lineNum">      24 </span>                : #ifndef BOOST_ARRAY_HPP
<span class="lineNum">      25 </span>                : #define BOOST_ARRAY_HPP
<span class="lineNum">      26 </span>                : 
<span class="lineNum">      27 </span>                : #include &lt;cstddef&gt;
<span class="lineNum">      28 </span>                : #include &lt;stdexcept&gt;
<span class="lineNum">      29 </span>                : #include &lt;boost/assert.hpp&gt;
<span class="lineNum">      30 </span>                : 
<span class="lineNum">      31 </span>                : // Handles broken standard libraries better than &lt;iterator&gt;
<span class="lineNum">      32 </span>                : #include &lt;boost/detail/iterator.hpp&gt;
<span class="lineNum">      33 </span>                : #include &lt;boost/throw_exception.hpp&gt;
<span class="lineNum">      34 </span>                : #include &lt;algorithm&gt;
<span class="lineNum">      35 </span>                : 
<span class="lineNum">      36 </span>                : // FIXES for broken compilers
<span class="lineNum">      37 </span>                : #include &lt;boost/config.hpp&gt;
<span class="lineNum">      38 </span>                : 
<span class="lineNum">      39 </span>                : 
<span class="lineNum">      40 </span>                : namespace boost {
<span class="lineNum">      41 </span>                : 
<span class="lineNum">      42 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">      43 </span><span class="lineCov">             10 :     class array {</span>
<span class="lineNum">      44 </span>                :       public:
<span class="lineNum">      45 </span>                :         T elems[N];    // fixed-size array of elements of type T
<span class="lineNum">      46 </span>                : 
<span class="lineNum">      47 </span>                :       public:
<span class="lineNum">      48 </span>                :         // type definitions
<span class="lineNum">      49 </span>                :         typedef T              value_type;
<span class="lineNum">      50 </span>                :         typedef T*             iterator;
<span class="lineNum">      51 </span>                :         typedef const T*       const_iterator;
<span class="lineNum">      52 </span>                :         typedef T&amp;             reference;
<span class="lineNum">      53 </span>                :         typedef const T&amp;       const_reference;
<span class="lineNum">      54 </span>                :         typedef std::size_t    size_type;
<span class="lineNum">      55 </span>                :         typedef std::ptrdiff_t difference_type;
<span class="lineNum">      56 </span>                : 
<span class="lineNum">      57 </span>                :         // iterator support
<span class="lineNum">      58 </span>                :         iterator begin() { return elems; }
<span class="lineNum">      59 </span>                :         const_iterator begin() const { return elems; }
<span class="lineNum">      60 </span>                :         iterator end() { return elems+N; }
<span class="lineNum">      61 </span>                :         const_iterator end() const { return elems+N; }
<span class="lineNum">      62 </span>                : 
<span class="lineNum">      63 </span>                :         // reverse iterator support
<span class="lineNum">      64 </span>                : #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) &amp;&amp; !defined(BOOST_MSVC_STD_ITERATOR) &amp;&amp; !defined(BOOST_NO_STD_ITERATOR_TRAITS)
<span class="lineNum">      65 </span>                :         typedef std::reverse_iterator&lt;iterator&gt; reverse_iterator;
<span class="lineNum">      66 </span>                :         typedef std::reverse_iterator&lt;const_iterator&gt; const_reverse_iterator;
<span class="lineNum">      67 </span>                : #elif defined(_MSC_VER) &amp;&amp; (_MSC_VER == 1300) &amp;&amp; defined(BOOST_DINKUMWARE_STDLIB) &amp;&amp; (BOOST_DINKUMWARE_STDLIB == 310)
<span class="lineNum">      68 </span>                :         // workaround for broken reverse_iterator in VC7
<span class="lineNum">      69 </span>                :         typedef std::reverse_iterator&lt;std::_Ptrit&lt;value_type, difference_type, iterator,
<span class="lineNum">      70 </span>                :                                       reference, iterator, reference&gt; &gt; reverse_iterator;
<span class="lineNum">      71 </span>                :         typedef std::reverse_iterator&lt;std::_Ptrit&lt;value_type, difference_type, const_iterator,
<span class="lineNum">      72 </span>                :                                       const_reference, iterator, reference&gt; &gt; const_reverse_iterator;
<span class="lineNum">      73 </span>                : #else
<span class="lineNum">      74 </span>                :         // workaround for broken reverse_iterator implementations
<span class="lineNum">      75 </span>                :         typedef std::reverse_iterator&lt;iterator,T&gt; reverse_iterator;
<span class="lineNum">      76 </span>                :         typedef std::reverse_iterator&lt;const_iterator,T&gt; const_reverse_iterator;
<span class="lineNum">      77 </span>                : #endif
<span class="lineNum">      78 </span>                : 
<span class="lineNum">      79 </span>                :         reverse_iterator rbegin() { return reverse_iterator(end()); }
<span class="lineNum">      80 </span>                :         const_reverse_iterator rbegin() const {
<span class="lineNum">      81 </span>                :             return const_reverse_iterator(end());
<span class="lineNum">      82 </span>                :         }
<span class="lineNum">      83 </span>                :         reverse_iterator rend() { return reverse_iterator(begin()); }
<span class="lineNum">      84 </span>                :         const_reverse_iterator rend() const {
<span class="lineNum">      85 </span>                :             return const_reverse_iterator(begin());
<span class="lineNum">      86 </span>                :         }
<span class="lineNum">      87 </span>                : 
<span class="lineNum">      88 </span>                :         // operator[]
<span class="lineNum">      89 </span>                :         reference operator[](size_type i) 
<span class="lineNum">      90 </span>                :         { 
<span class="lineNum">      91 </span>                :             BOOST_ASSERT( i &lt; N &amp;&amp; &quot;out of range&quot; ); 
<span class="lineNum">      92 </span>                :             return elems[i];
<span class="lineNum">      93 </span>                :         }
<span class="lineNum">      94 </span>                :         
<span class="lineNum">      95 </span>                :         const_reference operator[](size_type i) const 
<span class="lineNum">      96 </span>                :         {     
<span class="lineNum">      97 </span>                :             BOOST_ASSERT( i &lt; N &amp;&amp; &quot;out of range&quot; ); 
<span class="lineNum">      98 </span>                :             return elems[i]; 
<span class="lineNum">      99 </span>                :         }
<span class="lineNum">     100 </span>                : 
<span class="lineNum">     101 </span>                :         // at() with range check
<span class="lineNum">     102 </span>                :         reference at(size_type i) { rangecheck(i); return elems[i]; }
<span class="lineNum">     103 </span>                :         const_reference at(size_type i) const { rangecheck(i); return elems[i]; }
<span class="lineNum">     104 </span>                :     
<span class="lineNum">     105 </span>                :         // front() and back()
<span class="lineNum">     106 </span>                :         reference front() 
<span class="lineNum">     107 </span>                :         { 
<span class="lineNum">     108 </span>                :             return elems[0]; 
<span class="lineNum">     109 </span>                :         }
<span class="lineNum">     110 </span>                :         
<span class="lineNum">     111 </span>                :         const_reference front() const 
<span class="lineNum">     112 </span>                :         {
<span class="lineNum">     113 </span>                :             return elems[0];
<span class="lineNum">     114 </span>                :         }
<span class="lineNum">     115 </span>                :         
<span class="lineNum">     116 </span>                :         reference back() 
<span class="lineNum">     117 </span>                :         { 
<span class="lineNum">     118 </span>                :             return elems[N-1]; 
<span class="lineNum">     119 </span>                :         }
<span class="lineNum">     120 </span>                :         
<span class="lineNum">     121 </span>                :         const_reference back() const 
<span class="lineNum">     122 </span>                :         { 
<span class="lineNum">     123 </span>                :             return elems[N-1]; 
<span class="lineNum">     124 </span>                :         }
<span class="lineNum">     125 </span>                : 
<span class="lineNum">     126 </span>                :         // size is constant
<span class="lineNum">     127 </span>                :         static size_type size() { return N; }
<span class="lineNum">     128 </span>                :         static bool empty() { return false; }
<span class="lineNum">     129 </span>                :         static size_type max_size() { return N; }
<span class="lineNum">     130 </span>                :         enum { static_size = N };
<span class="lineNum">     131 </span>                : 
<span class="lineNum">     132 </span>                :         // swap (note: linear complexity)
<span class="lineNum">     133 </span>                :         void swap (array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     134 </span>                :             std::swap_ranges(begin(),end(),y.begin());
<span class="lineNum">     135 </span>                :         }
<span class="lineNum">     136 </span>                : 
<span class="lineNum">     137 </span>                :         // direct access to data (read-only)
<span class="lineNum">     138 </span>                :         const T* data() const { return elems; }
<span class="lineNum">     139 </span>                :         T* data() { return elems; }
<span class="lineNum">     140 </span>                : 
<span class="lineNum">     141 </span>                :         // use array as C array (direct read/write access to data)
<span class="lineNum">     142 </span>                :         T* c_array() { return elems; }
<span class="lineNum">     143 </span>                : 
<span class="lineNum">     144 </span>                :         // assignment with type conversion
<span class="lineNum">     145 </span>                :         template &lt;typename T2&gt;
<span class="lineNum">     146 </span>                :         array&lt;T,N&gt;&amp; operator= (const array&lt;T2,N&gt;&amp; rhs) {
<span class="lineNum">     147 </span>                :             std::copy(rhs.begin(),rhs.end(), begin());
<span class="lineNum">     148 </span>                :             return *this;
<span class="lineNum">     149 </span>                :         }
<span class="lineNum">     150 </span>                : 
<span class="lineNum">     151 </span>                :         // assign one value to all elements
<span class="lineNum">     152 </span>                :         void assign (const T&amp; value)
<span class="lineNum">     153 </span>                :         {
<span class="lineNum">     154 </span>                :             std::fill_n(begin(),size(),value);
<span class="lineNum">     155 </span>                :         }
<span class="lineNum">     156 </span>                : 
<span class="lineNum">     157 </span>                :         // check range (may be private because it is static)
<span class="lineNum">     158 </span>                :         static void rangecheck (size_type i) {
<span class="lineNum">     159 </span>                :             if (i &gt;= size()) {
<span class="lineNum">     160 </span>                :                 throw std::out_of_range(&quot;array&lt;&gt;: index out of range&quot;);
<span class="lineNum">     161 </span>                :             }
<span class="lineNum">     162 </span>                :         }
<span class="lineNum">     163 </span>                : 
<span class="lineNum">     164 </span>                :     };
<span class="lineNum">     165 </span>                : 
<span class="lineNum">     166 </span>                : #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
<span class="lineNum">     167 </span>                :     template&lt; class T &gt;
<span class="lineNum">     168 </span>                :     class array&lt; T, 0 &gt; {
<span class="lineNum">     169 </span>                : 
<span class="lineNum">     170 </span>                :       public:
<span class="lineNum">     171 </span>                :         // type definitions
<span class="lineNum">     172 </span>                :         typedef T              value_type;
<span class="lineNum">     173 </span>                :         typedef T*             iterator;
<span class="lineNum">     174 </span>                :         typedef const T*       const_iterator;
<span class="lineNum">     175 </span>                :         typedef T&amp;             reference;
<span class="lineNum">     176 </span>                :         typedef const T&amp;       const_reference;
<span class="lineNum">     177 </span>                :         typedef std::size_t    size_type;
<span class="lineNum">     178 </span>                :         typedef std::ptrdiff_t difference_type;
<span class="lineNum">     179 </span>                : 
<span class="lineNum">     180 </span>                :         // iterator support
<span class="lineNum">     181 </span>                :         iterator begin() { return iterator( reinterpret_cast&lt; T * &gt;( this ) ); }
<span class="lineNum">     182 </span>                :         const_iterator begin() const { return const_iterator(  reinterpret_cast&lt; const T * &gt;( this ) ); }
<span class="lineNum">     183 </span>                :         iterator end() { return begin(); }
<span class="lineNum">     184 </span>                :         const_iterator end() const { return begin(); }
<span class="lineNum">     185 </span>                : 
<span class="lineNum">     186 </span>                :         // reverse iterator support
<span class="lineNum">     187 </span>                : #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) &amp;&amp; !defined(BOOST_MSVC_STD_ITERATOR) &amp;&amp; !defined(BOOST_NO_STD_ITERATOR_TRAITS)
<span class="lineNum">     188 </span>                :         typedef std::reverse_iterator&lt;iterator&gt; reverse_iterator;
<span class="lineNum">     189 </span>                :         typedef std::reverse_iterator&lt;const_iterator&gt; const_reverse_iterator;
<span class="lineNum">     190 </span>                : #elif defined(_MSC_VER) &amp;&amp; (_MSC_VER == 1300) &amp;&amp; defined(BOOST_DINKUMWARE_STDLIB) &amp;&amp; (BOOST_DINKUMWARE_STDLIB == 310)
<span class="lineNum">     191 </span>                :         // workaround for broken reverse_iterator in VC7
<span class="lineNum">     192 </span>                :         typedef std::reverse_iterator&lt;std::_Ptrit&lt;value_type, difference_type, iterator,
<span class="lineNum">     193 </span>                :                                       reference, iterator, reference&gt; &gt; reverse_iterator;
<span class="lineNum">     194 </span>                :         typedef std::reverse_iterator&lt;std::_Ptrit&lt;value_type, difference_type, const_iterator,
<span class="lineNum">     195 </span>                :                                       const_reference, iterator, reference&gt; &gt; const_reverse_iterator;
<span class="lineNum">     196 </span>                : #else
<span class="lineNum">     197 </span>                :         // workaround for broken reverse_iterator implementations
<span class="lineNum">     198 </span>                :         typedef std::reverse_iterator&lt;iterator,T&gt; reverse_iterator;
<span class="lineNum">     199 </span>                :         typedef std::reverse_iterator&lt;const_iterator,T&gt; const_reverse_iterator;
<span class="lineNum">     200 </span>                : #endif
<span class="lineNum">     201 </span>                : 
<span class="lineNum">     202 </span>                :         reverse_iterator rbegin() { return reverse_iterator(end()); }
<span class="lineNum">     203 </span>                :         const_reverse_iterator rbegin() const {
<span class="lineNum">     204 </span>                :             return const_reverse_iterator(end());
<span class="lineNum">     205 </span>                :         }
<span class="lineNum">     206 </span>                :         reverse_iterator rend() { return reverse_iterator(begin()); }
<span class="lineNum">     207 </span>                :         const_reverse_iterator rend() const {
<span class="lineNum">     208 </span>                :             return const_reverse_iterator(begin());
<span class="lineNum">     209 </span>                :         }
<span class="lineNum">     210 </span>                : 
<span class="lineNum">     211 </span>                :         // operator[]
<span class="lineNum">     212 </span>                :         reference operator[](size_type i)
<span class="lineNum">     213 </span>                :         {
<span class="lineNum">     214 </span>                :             return failed_rangecheck();
<span class="lineNum">     215 </span>                :         }
<span class="lineNum">     216 </span>                : 
<span class="lineNum">     217 </span>                :         const_reference operator[](size_type i) const
<span class="lineNum">     218 </span>                :         {
<span class="lineNum">     219 </span>                :             return failed_rangecheck();
<span class="lineNum">     220 </span>                :         }
<span class="lineNum">     221 </span>                : 
<span class="lineNum">     222 </span>                :         // at() with range check
<span class="lineNum">     223 </span>                :         reference at(size_type i)               {   return failed_rangecheck(); }
<span class="lineNum">     224 </span>                :         const_reference at(size_type i) const   {   return failed_rangecheck(); }
<span class="lineNum">     225 </span>                : 
<span class="lineNum">     226 </span>                :         // front() and back()
<span class="lineNum">     227 </span>                :         reference front()
<span class="lineNum">     228 </span>                :         {
<span class="lineNum">     229 </span>                :             return failed_rangecheck();
<span class="lineNum">     230 </span>                :         }
<span class="lineNum">     231 </span>                : 
<span class="lineNum">     232 </span>                :         const_reference front() const
<span class="lineNum">     233 </span>                :         {
<span class="lineNum">     234 </span>                :             return failed_rangecheck();
<span class="lineNum">     235 </span>                :         }
<span class="lineNum">     236 </span>                : 
<span class="lineNum">     237 </span>                :         reference back()
<span class="lineNum">     238 </span>                :         {
<span class="lineNum">     239 </span>                :             return failed_rangecheck();
<span class="lineNum">     240 </span>                :         }
<span class="lineNum">     241 </span>                : 
<span class="lineNum">     242 </span>                :         const_reference back() const
<span class="lineNum">     243 </span>                :         {
<span class="lineNum">     244 </span>                :             return failed_rangecheck();
<span class="lineNum">     245 </span>                :         }
<span class="lineNum">     246 </span>                : 
<span class="lineNum">     247 </span>                :         // size is constant
<span class="lineNum">     248 </span>                :         static size_type size() { return 0; }
<span class="lineNum">     249 </span>                :         static bool empty() { return true; }
<span class="lineNum">     250 </span>                :         static size_type max_size() { return 0; }
<span class="lineNum">     251 </span>                :         enum { static_size = 0 };
<span class="lineNum">     252 </span>                : 
<span class="lineNum">     253 </span>                :         void swap (array&lt;T,0&gt;&amp; y) {
<span class="lineNum">     254 </span>                :         }
<span class="lineNum">     255 </span>                : 
<span class="lineNum">     256 </span>                :         // direct access to data (read-only)
<span class="lineNum">     257 </span>                :         const T* data() const { return 0; }
<span class="lineNum">     258 </span>                :         T* data() { return 0; }
<span class="lineNum">     259 </span>                : 
<span class="lineNum">     260 </span>                :         // use array as C array (direct read/write access to data)
<span class="lineNum">     261 </span>                :         T* c_array() { return 0; }
<span class="lineNum">     262 </span>                : 
<span class="lineNum">     263 </span>                :         // assignment with type conversion
<span class="lineNum">     264 </span>                :         template &lt;typename T2&gt;
<span class="lineNum">     265 </span>                :         array&lt;T,0&gt;&amp; operator= (const array&lt;T2,0&gt;&amp; ) {
<span class="lineNum">     266 </span>                :             return *this;
<span class="lineNum">     267 </span>                :         }
<span class="lineNum">     268 </span>                : 
<span class="lineNum">     269 </span>                :         // assign one value to all elements
<span class="lineNum">     270 </span>                :         void assign (const T&amp; ) {   }
<span class="lineNum">     271 </span>                : 
<span class="lineNum">     272 </span>                :         // check range (may be private because it is static)
<span class="lineNum">     273 </span>                :         static reference failed_rangecheck () {
<span class="lineNum">     274 </span>                :                 std::out_of_range e(&quot;attempt to access element of an empty array&quot;);
<span class="lineNum">     275 </span>                :                 boost::throw_exception(e);
<span class="lineNum">     276 </span>                :                 //
<span class="lineNum">     277 </span>                :                 // We need to return something here to keep
<span class="lineNum">     278 </span>                :                 // some compilers happy: however we will never
<span class="lineNum">     279 </span>                :                 // actually get here....
<span class="lineNum">     280 </span>                :                 //
<span class="lineNum">     281 </span>                :                 static T placeholder;
<span class="lineNum">     282 </span>                :                 return placeholder;
<span class="lineNum">     283 </span>                :             }
<span class="lineNum">     284 </span>                :     };
<span class="lineNum">     285 </span>                : #endif
<span class="lineNum">     286 </span>                : 
<span class="lineNum">     287 </span>                :     // comparisons
<span class="lineNum">     288 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     289 </span>                :     bool operator== (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     290 </span>                :         return std::equal(x.begin(), x.end(), y.begin());
<span class="lineNum">     291 </span>                :     }
<span class="lineNum">     292 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     293 </span>                :     bool operator&lt; (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     294 </span>                :         return std::lexicographical_compare(x.begin(),x.end(),y.begin(),y.end());
<span class="lineNum">     295 </span>                :     }
<span class="lineNum">     296 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     297 </span>                :     bool operator!= (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     298 </span>                :         return !(x==y);
<span class="lineNum">     299 </span>                :     }
<span class="lineNum">     300 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     301 </span>                :     bool operator&gt; (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     302 </span>                :         return y&lt;x;
<span class="lineNum">     303 </span>                :     }
<span class="lineNum">     304 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     305 </span>                :     bool operator&lt;= (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     306 </span>                :         return !(y&lt;x);
<span class="lineNum">     307 </span>                :     }
<span class="lineNum">     308 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     309 </span>                :     bool operator&gt;= (const array&lt;T,N&gt;&amp; x, const array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     310 </span>                :         return !(x&lt;y);
<span class="lineNum">     311 </span>                :     }
<span class="lineNum">     312 </span>                : 
<span class="lineNum">     313 </span>                :     // global swap()
<span class="lineNum">     314 </span>                :     template&lt;class T, std::size_t N&gt;
<span class="lineNum">     315 </span>                :     inline void swap (array&lt;T,N&gt;&amp; x, array&lt;T,N&gt;&amp; y) {
<span class="lineNum">     316 </span>                :         x.swap(y);
<span class="lineNum">     317 </span>                :     }
<span class="lineNum">     318 </span>                : 
<span class="lineNum">     319 </span>                : } /* namespace boost */
<span class="lineNum">     320 </span>                : 
<span class="lineNum">     321 </span>                : #endif /*BOOST_ARRAY_HPP*/
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
